Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#102 refactor createshortgame #115

Merged
merged 5 commits into from
Oct 20, 2023

Conversation

rkdmf1026
Copy link
Contributor

๐Ÿ“Œ ๊ด€๋ จ ์ด์Šˆ

๐Ÿ“ท screenshot

default.mp4

๐Ÿ“ Work Desciption

  • ํ•œํŒ์Šน๋ถ€, ๋ฏธ์…˜ ์นดํ…Œ๊ณ ๋ฆฌ ์„ค๋ช… ๋ทฐ ๊ตฌ์กฐ ๋ณ€๊ฒฝ(Activity to Fragment)
  • ํ•œํŒ์Šน๋ถ€ ๋ทฐ ์ปดํฌ๋„ŒํŠธ ์œ„์น˜ ๋ณ€๊ฒฝ
  • ํ•œํŒ์Šน๋ถ€ ์ƒ์„ฑ ๊ธฐ๋Šฅ ์ด์ „

๐Ÿ“š Reference ํ˜น์€ ๊ถ๊ธˆํ•œ ์‚ฌํ•ญ๋“ค

์•กํ‹ฐ๋น„ํ‹ฐ๋ทฐ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•ด์„œ ํ•˜๋‚˜์˜ ๋ทฐ๋ชจ๋ธ์„ ๋‘ ํ”„๋ž˜๊ทธ๋จผํŠธ๊ฐ€ ๊ณต์œ ํ•˜๋Š” ์‹์œผ๋กœ ๊ตฌ์กฐ๋ฅผ ๋ณ€๊ฒฝํ–ˆ์Šต๋‹ˆ๋‹ค.

@rkdmf1026 rkdmf1026 added feat ๊ตฌํ˜„ ๋ฐ ๊ฐœ์„  refactoring ๋ฆฌํŒฉํ† ๋ง UI UI ์ž‘์—… ๋™๊ธฐ ๐Ÿ ์œ ๋‹ˆ์˜ ์ •์‹ ์  ์ง€์ฃผ ๋‹ด๋‹น labels Oct 5, 2023
@rkdmf1026 rkdmf1026 requested a review from a team October 5, 2023 07:35
@rkdmf1026 rkdmf1026 self-assigned this Oct 5, 2023
Copy link
Contributor

@taeheeL taeheeL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+484 -481 ๊ฐ€ ์ข€ ์Šฌํ”„๋„ค์š”.. ์•„๋น  ์ตœ๊ณ  ใ…Ž
xml ํ•˜์‹œ๋Š๋ผ ๊ณ ์ƒ์ด ๋งŽ์œผ์‹ญ๋‹ˆ๋‹ค.. ๋ฆฌ๋ทฐ ํ•œ๋ฒˆ๋งŒ ๋ด์ฃผ์„ธ์š”!

@SerialName("image")
val image: String,
@SerialName("recommendTime")
val recommendTime: String?,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ถ”์ฒœ ์‹œ๊ฐ„์ด null์ผ ์ˆ˜๋„ ์ž‡๋‚˜์š”..? ํ—ˆ๊ฑฑ

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ผ๋‹จ ์„œ๋ฒ„๊ฐ€ ๋‚ด๋ ค์ฃผ๋Š”๊ฒŒ nullableํ•˜๊ฒŒ ๋‚ด๋ ค์ค๋‹ˆ๋‹ค...ใ…œใ…œ

if (fragment.isAdded) {
transaction.show(fragment)
} else {
transaction.add(R.id.fcv_create_short_game, fragment, tag)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace๊ฐ€ ์•„๋‹Œ hide & add ๋ฐฉ์‹์„ ์‚ฌ์šฉํ•œ ์ด์œ ๊ฐ€ ์žˆ์„๊นŒ์š”? ๋กœ์ง ์„ค๋ช…ํ•ด์ฃผ์‹œ๋ฉด ๋„ˆ๋ฌด๋„ˆ๋ฌด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

replace์™€ add ์ฐจ์ด๋ฅผ ๋ณด์‹œ๋ฉด replace๋Š” ์ด์ „ ํ”„๋ž˜๊ทธ๋จผํŠธ๋ฅผ ์‚ญ์ œํ•˜๊ณ  ์ƒˆ๋กœ์šด ํ”„๋ž˜๊ทธ๋จผํŠธ๋ฅผ ์ถ”๊ฐ€ํ•˜๋Š” ๊ฒƒ๊ณผ ๋‹ฌ๋ฆฌ add์˜ ๊ฒฝ์šฐ์—๋Š” ํ”„๋ž˜๊ทธ๋จผํŠธ๋ฅผ ์‚ญ์ œํ•˜์ง€์•Š์Šต๋‹ˆ๋‹ค. ํ•œํŒ์Šน๋ถ€์ƒ์„ฑ์—์„œ ๋ฏธ์…˜์นดํ…Œ๊ณ ๋ฆฌ๋ทฐ๋กœ ์ž์ฃผ ์ด๋™์„ ํ•ด์•ผํ• ๊ฑฐ๋ผ๊ณ  ์ƒ๊ฐํ•ด์„œ ๊ตณ์ด ๋งค๋ฒˆ ํ”„๋ž˜๊ทธ๋จผํŠธ๋ฅผ ์‚ญ์ œํ•  ํ•„์š”์—†๋‹ค๊ณ  ์ƒ๊ฐํ•ด์„œ ์ด๋ ‡๊ฒŒ ๊ตฌํ˜„ํ–ˆ์Šต๋‹ˆ๋‹ค!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ €ํฌ ์ƒํ™ฉ์—์„œ๋Š” add๋กœ show/hide๋ฅผ ํ•˜๋Š” ๊ฒŒ ๋งž๊ฒ ๊ตฐ์š”..! ์ƒํƒœ๋ฅผ ๋ณด์กดํ•ด์•ผ ๋˜๊ธฐ๋„ ํ•˜๋‹ˆ๊นŒ
์—ญ์‹œ ์•„๋ถ€์ง€๊ฐ€ ์ตœ๊ณ ์•ผ ใ…Žใ…Ž ๊ฐ์‚ผ๋‘ฅ

Comment on lines +71 to +74
private fun goToShortGame() {
val activity = activity as CreateShortGameActivity
activity.changeFragment(getString(R.string.label_short_game))
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ์•กํ‹ฐ๋น„ํ‹ฐ์™€ ํ”„๋ž˜๊ทธ๋จผํŠธ๊ฐ„์˜ ๊ฐ•ํ•œ ์˜์กด์„ฑ์ด ์ƒ๊ธธ ๊ฒƒ ๊ฐ™์€๋ฐ, ๋‹ค๋ฅธ State๋‚˜ Activity๋‚ด์—์„œ ๋ถ„๊ธฐ์ฒ˜๋ฆฌ๋ฅผ ํ†ตํ•ด ๋ณ€๊ฒฝ์‹œํ‚ค๋Š” ๊ฑด ์–ด๋–จ๊นŒ์š”?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์ด ๋ถ€๋ถ„์ด ๊ฐ€์žฅ ๊ณ ๋ฏผํ–ˆ๋˜ ๋ถ€๋ถ„์ด๊ธดํ•œ๋ฐ, ๋ฉ”๋ชจ์žฅ ๊ธฐ๋Šฅ ๊ตฌํ˜„ํ•˜๊ณ  ์‹œ๊ฐ„ ์ƒ๊ธฐ๋ฉด ๊ฐœ์„ ํ•˜๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

viewmodel์— state๋ฅผ ๋‘๊ณ  ์•กํ‹ฐ๋น„ํ‹ฐ์—์„œ ๊ด€์ฐฐํ•ด์„œ ์ „ํ™˜ํ•˜๋Š” ์‹์œผ๋กœ ํ•ด๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

์•„๋น  ์ตœ๊ณ !

@taeheeL taeheeL force-pushed the feature/#102-refactor-createshortgame branch from 8070a0b to 4e2ce03 Compare October 8, 2023 13:19
@rkdmf1026 rkdmf1026 merged commit 8b86ed8 into develop Oct 20, 2023
1 check passed
@rkdmf1026 rkdmf1026 deleted the feature/#102-refactor-createshortgame branch October 20, 2023 03:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat ๊ตฌํ˜„ ๋ฐ ๊ฐœ์„  ๋™๊ธฐ ๐Ÿ ์œ ๋‹ˆ์˜ ์ •์‹ ์  ์ง€์ฃผ ๋‹ด๋‹น refactoring ๋ฆฌํŒฉํ† ๋ง UI UI ์ž‘์—…
Projects
None yet
2 participants